<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="../../common/common.jsp" %>
<link href="<%=request.getContextPath() %>/css/admin/admin.css" type="text/css" rel="stylesheet">
<title>Insert title here</title>
</head>
<body>
	<TABLE cellSpacing=0 cellPadding=0 width="100%" background="<%=request.getContextPath() %>/images/pages/admin/header_bg.jpg" border=0>
		<TR height=56>
			<TD width=860>
				<font style="margin-left: 15px;font-size: 20px;font-weight: bold;color: white;">Hami鲜花 - 后台管理平台</font>
			</TD>
			<TD style="FONT-WEIGHT: bold; color: #fff; PADDING-TOP: 15px"
				align=middle>当前用户：admin &nbsp;&nbsp; 
				<A style="color: #fff" onclick="doLogout()" href="javascript: void(0)" target="_top">退出系统</A>
			</TD>
		</TR>
	</TABLE>
	<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
		<TR bgcolor=#1c5db6 height=4>
			<TD></TD>
		</TR>
	</TABLE>
</body>

<script type="text/javascript">
function doLogout() {
	if (confirm('确定要退出吗？')) {
		$.ajax({
			url: '<%=request.getContextPath() %>/admin/ajaxDoLogoutADM.action',
			data: null,
			type: 'post',
			dataType: 'json',
			success: ajaxDoLogoutADM_Callback
		});
	}
}
function ajaxDoLogoutADM_Callback(res) {
	var rs = res.result;
	if(rs == 0) {
		alert("登出成功!");
		location.href = '<%=request.getContextPath() %>/admin/loginInitADM.action';
	}
}
</script>

</html>